<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>代金卷</title>
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/replaceMoney.css">
</head>

<body>
    <!-- <header id="header">
        <em></em>
    </header> -->
    <section>
        <ul>
            <li>
                <div class="le">
                    <p>课程代金卷</p>
                    <span>有效期：2021.01.01-02.20</span>
                    <span>满2380可用，代金券可叠加使用</span>
                </div>
                <div class="ri">
                    <div class="top">
                        <i>￥</i><strong>50</strong>
                    </div>
                    <img src="./images/buy/true.png" class="bot" ischecked=true>
                </div>
            </li>
            <li>
                <div class="le">
                    <p>课程代金卷</p>
                    <span>有效期：2021.01.01-02.20</span>
                    <span>满2380可用，代金券可叠加使用</span>
                </div>
                <div class="ri">
                    <div class="top">
                        <i>￥</i><strong>50</strong>
                    </div>
                    <img src="./images/buy/false.png" class="bot" isChecked=false>
                </div>
            </li>
        </ul>
    </section>
    <script src="./js/jq.min.js"></script>
    <script>
        $(".bot").click(function (e) { 
            e.preventDefault();
            let checked=$(this).attr("isChecked");
            if (checked == "true") {
                $(this).attr({
                    isChecked:false,
                    src:"./images/buy/false.png"             
                })
            }else{
                $(this).attr({
                    isChecked:true,
                    src:"./images/buy/true.png"             
                })
            }
        });
    </script>
</body>

</html>